import request from '@/utils/request'
const api = '/api/ff'
// 分页查询
export function getFilePage(params) {
    return request({
        url: `${api}/page`,
        method: 'get',
        params
    })
}

// 根据ID查询
export function getFileById(id) {
    return request({
        url: `${api}/${id}`,
        method: 'get'
    })
}

// 保存或更新
export function saveFile(data) {
    return request({
        url: `${api}/save`,
        method: 'post',
        data
    })
}

// 删除
export function removeFile(id) {
    return request({
        url: `${api}/${id}`,
        method: 'delete'
    })
} 